import request from '@/utils/request'
const apiUrl = '/api/external-file'
export function getExternalFileList(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}

export function getExternalFileById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function batchSaveExternalFile(data) {
    return request({
        url: `${apiUrl}/batch`,
        method: 'post',
        data
    })
}

export function deleteExternalFile(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 